package net.dopan.pigframe.api.fegin.fallback;

import lombok.extern.slf4j.Slf4j;
import net.dopan.pigframe.api.fegin.UserServiceApi;
import net.dopan.pigframe.core.base.controller.response.ResponseBean;
import net.dopan.pigframe.core.model.UserVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Package: net.dopan.pigframe.api.fegin.fallback
 * @Title: UserServiceFallbackImpl
 * @Description: 用户服务接口错误回调
 * @author: 刘宽
 * @date: 2018/9/2 15:48
 */
@Slf4j
@Service("UserServiceApi")
@Component
public class UserServiceFallbackImpl implements UserServiceApi {

    @Override
    public UserVO findUserByUsername(String username) {
        log.error("调用{}异常:{}", "findUserByUsername", username);
        return null;
    }

    /**
     * 通过手机号查询用户、角色信息
     *
     * @param mobile 手机号
     * @return UserVo
     */
    @Override
    public UserVO findUserByMobile(String mobile) {
        log.error("调用{}异常:{}", "通过手机号查询用户", mobile);
        return null;
    }

    /**
     * 根据OpenId查询用户信息
     *
     * @param openId openId
     * @return UserVo
     */
    @Override
    public UserVO findUserByOpenId(String openId) {
        log.error("调用{}异常:{}", "通过OpenId查询用户", openId);
        return null;
    }
    /**
     * 根据userId查看用户验证信息
     */
   /* @Override
    public ResponseBean getIdentityVerification(String userId) {
        log.error("调用{}异常:{}", "通过userId查看用户验证信息", userId);
        return null;
    }*/
}
